<?php #//v.3.3.0
#///////////////////////////////////////////////////////
#//  COPYRIGHT 2004 Phpauction.org ALL RIGHTS RESERVED//
#///////////////////////////////////////////////////////

require('../includes/config.inc.php');
include "loggedin.inc.php";


@mysql_query("DELETE FROM PHPAUCTIONXL_banners WHERE id=".$_GET['banner']);
@mysql_query("DELETE FROM PHPAUCTIONXL_bannerscategories WHERE banner=".$_GET['banner']);
@mysql_query("DELETE FROM PHPAUCTIONXL_bannerskeywords WHERE banner=".$_GET['banner']);

unlink("$image_upload_path"."banners/".$_GET['user']."/".$_GET['name']);

#// Redirect
Header("Location: userbanners.php?id=".$_GET['user']);
?>
